import { defineNuxtConfig } from 'nuxt/config'

// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
  devtools: { enabled: true },

  modules: ['@element-plus/nuxt'],

  elementPlus: {
    theme: {
      primary: '#67C23A',
    }
  },

  vite: {
    server: {
      proxy: {
        '/auth': {
          target: 'http://localhost:8080',
          changeOrigin: true,
        },
        '/dict': {
          target: 'http://localhost:8080',
          changeOrigin: true,
        },
      }
    }
  }
})
